﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics;

namespace Jet.Dal.EF.Tests.DataObjects
{
	/// <summary>
	/// Information about suppliers from Northwind database
	/// </summary>
	[DebuggerDisplay("{SupplierID} - {CompanyName}")]
	[Table("Suppliers")]
	public class Suppliers
	{
		[Key]
		public int SupplierID { get; set; }

		[Column]
		public string CompanyName { get; set; }

		[Column]
		public string ContactName { get; set; }

		[Column]
		public string ContactTitle { get; set; }

		[Column]
		public string Address { get; set; }

		[Column]
		public string City { get; set; }

		[Column]
		public string Region { get; set; }

		[Column]
		public string PostalCode { get; set; }

		[Column]
		public string Country { get; set; }

		[Column]
		public string Phone { get; set; }

		[Column]
		public string Fax { get; set; }

		[Column]
		public string HomePage { get; set; }

		public override string ToString()
		{
			return String.Format("Supplier: ID='{0}', CompanyName='{1}' ContactName='{2}'", SupplierID, CompanyName, ContactName);
		}
	}
}
